// GameModeArray.cpp: implementation of the CGameModeArray class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "AUSlotsTester.h"
#include "GameModeArray.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CGameMode::CGameMode()
{
}

CGameMode::CGameMode( const CAUSlotsGameModesAccessor& accessor )
{
	m_nID = accessor.m_gamemodeid;
	m_strDescription = accessor.m_description;
}

CGameMode& CGameMode::operator=( const CAUSlotsGameModesAccessor& accessor )
{
	m_nID = accessor.m_gamemodeid;
	m_strDescription = accessor.m_description;

	return *this;
}

CGameModeArray::CGameModeArray()
{
}

CGameModeArray::~CGameModeArray()
{
}

int CGameModeArray::Add( const CAUSlotsGameModesAccessor& accessor )
{
	return CArray< CGameMode, const CGameMode& >::Add( CGameMode( accessor ) );
}

